package org.domon.manager.sys.controller;

import java.util.ArrayList;
import java.util.List;

import org.domon.manager.base.handler.BaseController;
import org.domon.manager.sys.model.NameValue;
import org.domon.manager.sys.model.UserInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/common")
public class CommonController extends BaseController {

	@ResponseBody
	@RequestMapping("/menu/type")
	public List<NameValue> getMenuType(UserInfo userInfo) {
		List<NameValue> nameValueList = new ArrayList<NameValue>();
		nameValueList.add(new NameValue("目录", "FOLDER"));
		nameValueList.add(new NameValue("功能菜单", "URL"));
		nameValueList.add(new NameValue("功能点", "FUNCION"));
		return nameValueList;
	}
}
